package com.ricchieri.model;

import java.util.Date;
import java.sql.Time;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

@Entity
@Inheritance(strategy=InheritanceType.JOINED)
@Table(name="schedule")
public class Schedule extends BaseEntity {
	private static final long serialVersionUID = 7674850118529872655L;
	
	@Column(name="date", nullable=false)
	private Date date;
	
	@Column(name="time", nullable=false)
	private Time time;
	
	public Schedule() {
		super();
	}
	
	public Schedule(Date date, Time time) {
		this.date = date;
		this.time = time;
	}
	
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public Time getTime() {
		return time;
	}
	public void setTime(Time time) {
		this.time = time;
	}

}